import {createApp} from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store/store'
import installElementPlus from './plugins/element'
import './assets/css/icon.css'


import modal from './views/Modal.vue'



import axios from 'axios';
const app = createApp(App)
installElementPlus(app)


//全局注册组件    公共的页面组件可以在这里注册 子组件的挂载必须在父组件app之前
app.component("modal-popup",modal)


app
    .use(store)
    .use(router)
    .mount('#app')

